package com.ds.infrastructure.hyperspace.container.endpoint.connector;

/**
 * Fire while the object implements this interface
 * @author  Weishaoying
 */
public interface Timeoutable {

    /**
     * event unique id
     * @return
     */
    String getEventId();

    /**
     * true while event exceed timeout config
     * @return
     */
    boolean checkTimeout();

    /**
     * fire while event was timeout
     */
    void onTimeout();

    /**
     * Touch last active time
     */
    void touch();
}
